565 VTAB 9: HTAB 6: PRINT "49168 ,0: RETURN": NORMAL : HOME
570 PRINT "IF A KEY IS PRESSED THE VALUE OF PEEK-"
575 PRINT "(49152) WILL BE MORE THAN 127 AND THE"
580 GOSUB 40
585 PRINT "IF/THEN STATEMENT WILL BE TRUE."
590 GOSUB 40
591 PRINT
595 PRINT "THE IF/THEN STATEMENT IS IN INVERSE."
600 PRINT : PRINT "IF THE IF/THEN STATEMENT IS TRUE": PRINT "THE POKE 49168,0 AND RETURN WILL BE": GOSUB 40: PRINT "EXECUTED, AND THE PROGRAM WILL CONTINUE."
605 GOSUB 20
610 POKE 34,4: HOME : LIST 12 -35
615 POKE 34,12: HOME : PRINT "IF NO KEY IS PRESSED THE"
620 PRINT "ROUTINE WILL LOOP THRU 1500 CYCLES."
625 PRINT : PRINT "WHEN I = 1500 THE LAST PART OF"
630 PRINT "LINE 30 WILL EXECUTE, AND THE PROGRAM": PRINT "WILL RESUME."
635 VTAB 11: HTAB 13: INVERSE : PRINT "POKE 49168,0: RETURN": NORMAL : GOSUB 20: HOME
636 VTAB 11: HTAB 13: PRINT "POKE 49168,0: RETURN": HOME
640 PRINT "THIS PROGRAM USES TWO SUBROUTINES, ONE"
645 PRINT "FOR LONG DELAYS AND ONE FOR SHORT."
650 PRINT : PRINT "THE LENGTH OF THE DELAY IS DETERMINED BY"
655 PRINT "THE NUMBER OF CYCLES THE LOOP EXECUTES."
660 PRINT "THE LARGER THE LOOP THE LONGER THE DELAY"
665 GOSUB 20
670 POKE 34,3: HOME
675 LIST 12 -45
680 PRINT : PRINT "HERE ARE THE LISTINGS AGAIN,"
685 PRINT "NOTICE THE DIFFERENCE BETWEEN THE LONG": PRINT "AND SHORT ROUTINES."
690 GOSUB 20
700 HOME
705 T$ = "A LITTLE QUIZ":L = LEN(T$)
710 HTAB 21 -L/2: PRINT T$
720 POKE 34,7: HOME
725 PRINT "WHAT DETERMINES THE LENGTH OF THE DELAY"
730 PRINT : PRINT "(A) LENGTH OF THE LOOP"
735 PRINT : PRINT "(B) MEMORY LOCATION "
740 PRINT : PRINT "ANSWER -->";: GET A$: PRINT : IF A$ = "A" THEN 760
750 GOTO 650
760 PRINT : PRINT "CORRECT!!"
765 PRINT : PRINT "THE LONGER THE LOOP THE LONGER THE DELAY": GOSUB 40